/**
 * 
 */
package org.oos.auth;

/**
 * Types of user privacy levels.
 * 
 * @author pablo.gonzalez@11870.com
 * 
 */
public enum UserPrivacyType {
	PUBLIC, CONTACTS, TRUSTEDCONTACTS, PRIVATE;

	/**
	 * Retrieve the correct {@link UserPrivacyType} from the provided text.
	 * 
	 * If the provided {@link String} doesn't correlate with one of the values
	 * it will throw an {@link IllegalArgumentException}
	 * 
	 * @param value
	 * @return the correct {@link UserPrivacyType}
	 */
	public static UserPrivacyType resolve(String value) {
		return UserPrivacyType.valueOf(value.toUpperCase());
	}
}